package com.ruoyi.testDeal.service.impl;

import com.ruoyi.testDeal.domain.equInfo.JkDshshsjInfo;
import com.ruoyi.testDeal.mapper.JkDshshsjInfoMapper;
import com.ruoyi.testDeal.service.IJkDshshsjInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 非煤带式输送机参数信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-10
 */
@Service
public class JkDshshsjInfoServiceImpl implements IJkDshshsjInfoService
{
    @Autowired
    private JkDshshsjInfoMapper jkDshshsjInfoMapper;

    /**
     * 查询非煤带式输送机参数信息
     * 
     * @param jkDshshsjId 非煤带式输送机参数信息主键
     * @return 非煤带式输送机参数信息
     */
    @Override
    public JkDshshsjInfo selectJkDshshsjInfoByJkDshshsjId(Long jkDshshsjId)
    {
        return jkDshshsjInfoMapper.selectJkDshshsjInfoByJkDshshsjId(jkDshshsjId);
    }

    /**
     * 查询非煤带式输送机参数信息列表
     * 
     * @param jkDshshsjInfo 非煤带式输送机参数信息
     * @return 非煤带式输送机参数信息
     */
    @Override
    public List<JkDshshsjInfo> selectJkDshshsjInfoList(JkDshshsjInfo jkDshshsjInfo)
    {
        return jkDshshsjInfoMapper.selectJkDshshsjInfoList(jkDshshsjInfo);
    }

    /**
     * 新增非煤带式输送机参数信息
     * 
     * @param jkDshshsjInfo 非煤带式输送机参数信息
     * @return 结果
     */
    @Override
    public int insertJkDshshsjInfo(JkDshshsjInfo jkDshshsjInfo)
    {
        return jkDshshsjInfoMapper.insertJkDshshsjInfo(jkDshshsjInfo);
    }

    /**
     * 修改非煤带式输送机参数信息
     * 
     * @param jkDshshsjInfo 非煤带式输送机参数信息
     * @return 结果
     */
    @Override
    public int updateJkDshshsjInfo(JkDshshsjInfo jkDshshsjInfo)
    {
        return jkDshshsjInfoMapper.updateJkDshshsjInfo(jkDshshsjInfo);
    }

    /**
     * 批量删除非煤带式输送机参数信息
     * 
     * @param jkDshshsjIds 需要删除的非煤带式输送机参数信息主键
     * @return 结果
     */
    @Override
    public int deleteJkDshshsjInfoByJkDshshsjIds(Long[] jkDshshsjIds)
    {
        return jkDshshsjInfoMapper.deleteJkDshshsjInfoByJkDshshsjIds(jkDshshsjIds);
    }

    /**
     * 删除非煤带式输送机参数信息信息
     * 
     * @param jkDshshsjId 非煤带式输送机参数信息主键
     * @return 结果
     */
    @Override
    public int deleteJkDshshsjInfoByJkDshshsjId(Long jkDshshsjId)
    {
        return jkDshshsjInfoMapper.deleteJkDshshsjInfoByJkDshshsjId(jkDshshsjId);
    }

    /**
     * 删除输送机信息
     *
     * @param reportNum
     */
    @Override
    public int deleteJkDshshsjInfoByReportNum(String reportNum) {
        return jkDshshsjInfoMapper.deleteJkDshshsjInfoByReportNum(reportNum);
    }

    /**
     * 获取输送机信息
     *
     * @param reportNum
     */
    @Override
    public JkDshshsjInfo selectJkDshshsjInfoByReportNum(String reportNum) {
        return jkDshshsjInfoMapper.selectJkDshshsjInfoByReportNum(reportNum);
    }
}
